﻿using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using ATSDAL;

/// <summary>
///ServiceForElecProperty 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class ServiceForElecProperty : System.Web.Services.WebService
{
    public TElectResult test;
    public ServiceForElecProperty()
    {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }

    [WebMethod(Description = "根据条码和MO号，获取产品的电性能测试结果")]
    public string ElecPropertyByProSN(string ProSN, string MOID)
    {
        test = new TElectResult();
        return test.GetTestRe_ProSN(ProSN, MOID).IsPass;
    }
}

